package com.bw.a2207a.db

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import com.bw.a2207a.bean.SearchHistoryBean

/**
 *
 * @ClassName: SearchDao
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/10/24 11:04 AM
 * @Version: 1.0
 */
@Dao
interface SearchDao {

    @Insert(onConflict = REPLACE)
    fun insertSearch(searchHistoryBean: SearchHistoryBean)

    @Query("select * from search_bean")
    fun querySearchs(): List<SearchHistoryBean>

    @Query("delete from search_bean")
    fun deleteSearch()

}